import request from '@/utils/request'
import qs from 'qs'

export function getListApi(params) {
  return request({
      url: 'http://localhost:2345/question/list',
      method: 'get',
      params
  })
}

export function postListApi(data) {
return request({
    url: 'http://localhost:2345/question/addList',
    method: 'post',
    data:qs.stringify(data)
})
}

export function postUpdateApi(data) {
return request({
    url: 'http://localhost:2345/question/upList',
    method: 'post',
    data:qs.stringify(data)
})
}

export function getDeletApi(params) {
return request({
    url: 'http://localhost:2345/question/deleList',
    method: 'get',
    params
})
}